/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class EventTrack {
    @NotNull
    private final Object attributes;
    private final int counter;
    @NotNull
    private final String eventId;
    @NotNull
    private final String label;

    public EventTrack(@NotNull Object attributes, int i2, @NotNull String eventId, @NotNull String label) {
        Intrinsics.checkNotNullParameter(attributes, "attributes");
        Intrinsics.checkNotNullParameter(eventId, "eventId");
        Intrinsics.checkNotNullParameter(label, "label");
        this.attributes = attributes;
        this.counter = i2;
        this.eventId = eventId;
        this.label = label;
    }

    public static /* synthetic */ EventTrack copy$default(EventTrack eventTrack, Object obj, int i2, String str, String str2, int i3, Object obj2) {
        if ((i3 & 1) != 0) {
            obj = eventTrack.attributes;
        }
        if ((i3 & 2) != 0) {
            i2 = eventTrack.counter;
        }
        if ((i3 & 4) != 0) {
            str = eventTrack.eventId;
        }
        if ((i3 & 8) != 0) {
            str2 = eventTrack.label;
        }
        return eventTrack.copy(obj, i2, str, str2);
    }

    @NotNull
    public final Object component1() {
        return this.attributes;
    }

    public final int component2() {
        return this.counter;
    }

    @NotNull
    public final String component3() {
        return this.eventId;
    }

    @NotNull
    public final String component4() {
        return this.label;
    }

    @NotNull
    public final EventTrack copy(@NotNull Object attributes, int i2, @NotNull String eventId, @NotNull String label) {
        Intrinsics.checkNotNullParameter(attributes, "attributes");
        Intrinsics.checkNotNullParameter(eventId, "eventId");
        Intrinsics.checkNotNullParameter(label, "label");
        return new EventTrack(attributes, i2, eventId, label);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof EventTrack)) {
            return false;
        }
        EventTrack eventTrack = (EventTrack) obj;
        return Intrinsics.areEqual(this.attributes, eventTrack.attributes) && this.counter == eventTrack.counter && Intrinsics.areEqual(this.eventId, eventTrack.eventId) && Intrinsics.areEqual(this.label, eventTrack.label);
    }

    @NotNull
    public final Object getAttributes() {
        return this.attributes;
    }

    public final int getCounter() {
        return this.counter;
    }

    @NotNull
    public final String getEventId() {
        return this.eventId;
    }

    @NotNull
    public final String getLabel() {
        return this.label;
    }

    public int hashCode() {
        return (((((this.attributes.hashCode() * 31) + this.counter) * 31) + this.eventId.hashCode()) * 31) + this.label.hashCode();
    }

    @NotNull
    public String toString() {
        return "EventTrack(attributes=" + this.attributes + ", counter=" + this.counter + ", eventId=" + this.eventId + ", label=" + this.label + ')';
    }
}